#!/usr/bin/env ruby

#
# Utility functions for file access

# Start File access
def save_file
  File.open(@filename, "w"){|f| 
    f.write(@buffer.get_text(*@buffer.bounds)) 
  }
  @buffer.modified = false
end

def read_file
  File.open(@filename){|f| ret = f.readlines.join }
end
